<?php

die;
function a($code) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, 'https://shent.youpengw.com/api/v3/search_code/check');
    curl_setopt($ch, CURLOPT_POSTFIELDS, 'code=' . $code);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// curl_setopt($ch, CURLOPT_USERAGENT, "jb51.net's CURL Example beta");
    curl_setopt($ch, CURLOPT_HTTPHEADER, [
        'token:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOjMxNjY5NywiZ3VpZCI6IjdCRDVFMkEzLTdFOEUtNEE4OS04RTBDLUYyNDM2NjExMTEyOCIsInNvbmlkIjowLCJ2ZXJzaW9uIjoiMjAyMzA0MTMiLCJleHBpcmVfdGltZSI6MTY4MjEzNTU5Nn0.LLWjfK1gXEVBKyVpIMtw6XbeV7hUBtmn1yVjJMKOQJI',
        'Authorization:7BD5E2A3-7E8E-4A89-8E0C-F24366111128'
    ]);
    $data = curl_exec($ch);
    curl_close($ch);
    $data = json_decode($data, true);
    return $data;
}

$allow = [
    5795,
    9750,
    5490,
    88814,
    88824,
    88831,
    6641,
    6694
];
for ($i = 94; $i <= 100; $i++) {
    $code = '66' . $i;
    if (in_array($code, $allow)) continue;
    $a = a($code);
    if ($a['code'] != -10001) {
        var_dump(
            $code,
            $a
        );die;
    }
}
echo '无可用';
die;


//使用方法
$post_data = array(
    'code'	=> rand(0000, 9999)
);
echo send_post('https://shent.youpengw.com/api/v3/search_code/check', $post_data);